<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button id="btn">异步接口</button>
    <script src="./js/jquery.min.js"></script>
    <script>
        $("#btn").click(function(){
            console.log("btn be clicked!");
            $.ajax({
                url:"http://127.0.0.1:5500/api/hlm.json",
                data:{
                    uname:"admin",
                    password:"123456"
                },
                success(r){
                    console.log("r",r);
                }
            })
        })
    </script>
</body>
</html>